/**
 *******************************************************************************
 * @file cli_task.h
 * @author .ISS_AUTO (hudandan@issauto.com)
 * @date 2024-05-15  1. Base Version；
 *       2025-03-19  1. Remove redundant code
 *
 * @brief  This file for the cli task specification.
 *
 * @copyright Copyright (c) 2024 ISSAUTO TECH Co., Ltd. All rights reserved.
 *
 *******************************************************************************
 */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __CLI_TASK_H
#define __CLI_TASK_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

#include "hcli.h"

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/

/* Commun Config */
#define COMM_CHANNEL_CLI              UART_CHANNEL_CLI
#define COMM_CLI_RX_BUF_SIZE          (1U << 6) //!< UART RX buffer size, must be a multiple of 2

/* Exported variables --------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
/*!< CLI CMD */
extern hcli_obj_t *cli_obj_get(void);
extern int cli_cmds_add(hcli_cmd_t *cmd, unsigned int n);
extern int cli_cmds_del(hcli_cmd_t *cmd, unsigned int n);

void CLI_DeInit(void);
void CLI_Init(void);
void CLI_Handle(void *arg);


#ifdef __cplusplus
}
#endif

#endif/* __CLI_TASK_H */

/* END OF FILE ---------------------------------------------------------------*/
